package com.itheima.stock.mapper;

import com.itheima.stock.pojo.StockBlockRtInfoNew;
import com.itheima.stock.pojo.StockUpdownDomain;
import com.itheima.stock.pojo.po.StockBlockRtInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author Administrator
* @description 针对表【stock_block_rt_info(股票板块详情信息表)】的数据库操作Mapper
* @createDate 2022-03-12 20:30:27
* @Entity com.itheima.stock.pojo.po.StockBlockRtInfo
*/
public interface StockBlockRtInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockBlockRtInfo record);

    int insertSelective(StockBlockRtInfo record);

    StockBlockRtInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockBlockRtInfo record);

    int updateByPrimaryKey(StockBlockRtInfo record);

    List<StockBlockRtInfoNew> sectorAllLimit();

    List<StockUpdownDomain> stockIncreaseLimit(@Param("curDate")Date curDateTime);

    /**
     * 板块信息批量插入
     * @param list
     * @return
     */
    int insertBatch(List<StockBlockRtInfo> list);
}
